﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lion.WeiXin.Core.Models
{
    /// <summary>
    /// 微信菜单，一级最多3个，2级最多5个
    /// </summary>
    public class WeChatMenuModel : BaseModel
    {
       
        /// <summary>
        /// 菜单父级代码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 菜单标题，不超过16个字节，子菜单不超过40个字节
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 菜单KEY值，用于消息接口推送，不超过128字节
        /// </summary>
        public string Key { get; set; }
        /// <summary>
        /// 网页链接，用户点击菜单可打开链接，不超过256字节
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 微信菜单类型：
        /// <para>click：点击推事件</para>
        ///  <para>view：跳转URL</para>
        ///  <para>scancode_push：扫码推事件</para>
        ///  <para>scancode_waitmsg：扫码推事件且弹出“消息接收中”提示框</para>
        ///  <para>pic_sysphoto：弹出系统拍照发图</para>
        ///  <para>pic_photo_or_album：弹出拍照或者相册发图</para>
        ///  <para>pic_weixin：弹出微信相册发图器</para>
        ///  <para>location_select：弹出地理位置选择器</para>
        /// </summary>
        public string Type { get; set; }
    }
}
